

package com.maoshi.shop.platform.controller;


import com.maoshi.shop.bean.model.ShopWallet;
import com.maoshi.shop.common.annotation.SysLog;

import javax.validation.Valid;

import com.maoshi.shop.service.ShopWalletService;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import lombok.AllArgsConstructor;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.maoshi.shop.common.util.PageParam;
import com.baomidou.mybatisplus.core.metadata.IPage;


/**
 * 商家钱包信息
 *
 * @author LGH
 * @date 2019-09-29 11:10:12
 */
@RestController
@AllArgsConstructor
@RequestMapping("/shop/shopWallet" )
public class ShopWalletController {

    private final ShopWalletService shopWalletService;

    /**
     * 分页查询
     * @param page 分页对象
     * @param shopWallet 商家钱包信息
     * @return 分页数据
     */
    @GetMapping("/page" )
    public ResponseEntity<IPage<ShopWallet>> getShopWalletPage(PageParam<ShopWallet> page, ShopWallet shopWallet) {
        return ResponseEntity.ok(shopWalletService.pageShopWallet(page, shopWallet));
    }
}
